<form id="teacherForm">
    <input name="id" type="hidden" th:value="${teacher?.id}">
    <div class="form-group row">
        <label for="name" class="col-sm-2 col-form-label">老师名称</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teacher?.teacherName}" name="teacherName" class="form-control" id="name"
                   placeholder="填写老师名称" required>
            <div class="invalid-feedback">请填写老师名称</div>
        </div>
    </div>
    <div class="form-group row">
        <label for="tel" class="col-sm-2 col-form-label">联系方式</label>
        <div class="col-sm-10">
            <input type="text" th:value="${teacher?.tel}" name="tel" class="form-control"
                   id="tel"
                   placeholder="填写联系方式" required>
            <div class="invalid-feedback">请填写联系方式</div>
        </div>
    </div>
</form>